package com.settlement.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.settlement.system.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 标准核销表
 * </p>
 *
 * @author huangrensen
 * @since 2023-08-14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysAuditRule extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // 编号编码
    private String ruleCode;
    // 规则名称
    private String ruleName;
    // 稽核优先级
    private Long priority;
    // 结果分类
    private String resultType;
    // 责任归属
    private String liability;
    // 订单稽核细类
    private String orderAuditType;
    // 应收账款余额符号
    private String receiveCountSymbol;
    // 应收账款余额
    private BigDecimal receiveCount = BigDecimal.ZERO;
    // 业务日期vs查询日期符号
    private String dateConfigSymbol;
    // 业务日期vs查询日期
    private BigDecimal dateConfig = BigDecimal.ZERO;
    // 收款金额-发货金额符号
    private String moneyDiffConfigSymbol;
    // 收款金额-发货金额
    private BigDecimal moneyDiffConfig = BigDecimal.ZERO;

    private Long createBy;

    private Long updateBy;
}
